package com.sudo.boot.mapper.sys.model.bo.sysconfig;

import com.sudo.boot.mybatisflex.base.BaseVo;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色数量配置
 *
 * @author DayDayUp
 * @datetime 2023-11-15 13:57
 **/
@Data
@EqualsAndHashCode(callSuper = true)
public class SysRoleDtoCount extends BaseVo {
    @Max(value = 5,message = "最多给用户分配5个角色")
    @Min(value = 1,message = "至少给用户分配1个角色")
    @NotNull(message = "角色数量不能为空")
    private Integer roleCount;

}
